package com.chance.cc.crawler.development.command.publish.meipai;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.development.command.job.domain.meipai.MeiPaiRealtimeCrawlerSchedulerJob;
import com.chance.cc.crawler.development.command.script.meipai.MeiPaiCrawlerScript;
import com.chance.cc.crawler.development.command.trigger.domain.meipai.MeiPaiCrawlerTriggerInfo;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/4/22 14:15
 * @Description
 *      美拍视频
 **/
public class MeiPaiPublishCrawlerJob {

    public static void main(String[] args) {
//        publishCrawlerJob();
//
        MeiPaiCrawlerScript.publishCrawlerNodeScript();
    }

    public static void publishCrawlerJob(){
        //发布采集job
        CrawlerJob crawlerJob = MeiPaiRealtimeCrawlerSchedulerJob.publishCrawlerScheduleJobInfo();
        MeiPaiCrawlerTriggerInfo.simpleCrawlerScheduleTriggerInfo(crawlerJob.generateCrawlerKey(), crawlerJob.generateCrawlerTriggerKey());
    }
}
